package com.example.user_manage.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 结果封装枚举
 */
@Getter
@AllArgsConstructor
public enum REnum {
    SUCCESS_LOGIN("1001","登录成功")
    ,SUCCESS_SIGN_IN("1002","注册成功")
    ,SUCCESS_USER_UPDATE("1003","用户信息修改成功")
    ,SUCCESS_USER_DELETE("1004","用户删除成功")
    ,FAIL_SERVICE_EXCEPTION("2001","服务层异常")
    ,SUCCESS_CREATE_USER_ROLE("1005","创建用户角色对应关系成功")
    ,SUCCESS_DELETE_USER_ROLE("1006","删除用户角色对应关系成功")
    ,SUCCESS_SELECT_USERS("1007","查询用户列表成功")
    ,SUCCESS_VERIFICATION_PHONE("1008","验证短信已发送，请注意查收。")
    ,SUCCESS_VERIFICATION_CODE("1009","验证通过！")

    ,FAIL_VERIFICATION_PHONE("1009","短信发送失败");

    /**
     * 状态码
     */
    private final String code;
    /**
     * 描述信息
     */
    private final String message;
}
